package org.as4game.resource.anim
{
	/**
	 * 动画时间点
	 */
	public class TimeIndex
	{
		static public const INVALID_KEY_INDEX:uint = uint.MAX_VALUE;
		
		//
		public var mTimePos:Number;					// 时间点, 整个动画序列		
		public var mKeyIndex:uint;						// 全局关键帧索引
		
		//
		public function TimeIndex(timePos:Number, keyIndex:uint=INVALID_KEY_INDEX)
		{
			mTimePos = timePos;
			mKeyIndex = keyIndex;
		}
		
		public function hasKeyIndex():Boolean{
			return (mKeyIndex != INVALID_KEY_INDEX);
		}
	}
}